{$begin_form}
test <br /> {$var} <br />
<input type="text" name="test" />
<input type="submit" value="test" /> 
{$end_form}